<template>
  <view class="wrap_list">
    <view
        class="wrap"
        @tap="$api.handleMenu(`/pages/teacherappointment/teacherappointment?id=${item.id}`)"
        v-for="(item, index) in list"
        :key="index"
    >
      <view class="pict">
        <image :src="item.icon" mode="aspectFill" />
      </view>
      <view class="wrap-text">
        <view class="box">
          <view class="box_t">
            <view class="h2">{{ item.name }}</view>
            <!--<view class="h3">约课:3次</view>-->
            <!-- <view class="h3"><image class="ico_dz" src="../../static/img/dz.png" mode="aspectFill" /> <text>{{item.teacherScore}}</text></view> -->
          </view>

          <text class="p"> <rich-text type="text" :nodes="item.content" ></rich-text></text>
        </view>
        <!-- <view class="yue"><view class="save-btn-text"><text>邀 请</text></view></view> -->
      </view>
    </view>
    <!--uni-load-more :status="tabItem.loadingType"></uni-load-more-->
  </view>
</template>

<script>
export default {
  props:{
    list:{
      type:Array,
      default(){
        return []
      }
    }
  }
}
</script>

<style scoped>
.container * {
  box-sizing: border-box;
}
.ico_dz {
  width: 30rpx;
  height: 30rpx;
  margin-right: 10rpx;
  vertical-align: middle;
  margin-bottom: 10rpx;
}
.container {
  min-height: 100vh;
  background: #feffff;
}
.online-wrap {
  float: left;
  width: 100%;
  padding: 0 30rpx;
  margin-bottom: 160rpx;
}
.online-wrap .title {
  float: left;
  width: 100%;
}
.online-wrap .title .p {
  float: left;
  font-size: 32rpx;
  position: relative;
  padding-left: 20rpx;
}
.online-wrap .title .p:after {
  content: '';
  width: 9rpx;
  height: 38rpx;
  border-radius: 10rpx;
  background: #5a75f2;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  left: 0;
}
.online-wrap .title .more {
  font-size: 24rpx;
  float: right;
  color: #999;
  background: url()
  right center/11rpx no-repeat;
  padding-right: 22rpx;
}
.online-wrap .wrap {
  float: left;
  width: 100%;
  padding: 28rpx;
  box-shadow: 0 0 10rpx rgba(80, 104, 169, 0.21);
  border-radius: 20rpx;
  margin-top: 47rpx;
}
.online-wrap .wrap .pict {
  float: left;
  width: 180rpx;
  height: 233rpx;
  overflow: hidden;
  border-radius: 10rpx;
}
.online-wrap .wrap .pict image {
  width: 100%;
  height: 100%;
}
.online-wrap .wrap .wrap-text {
  float: right;
  width: calc(100% - 180rpx);
  height: 233rpx;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.online-wrap .wrap .wrap-text .box {
  float: left;
  width: 100%;
  padding-left: 21rpx;
  padding-top: 9rpx;
}

.online-wrap .wrap .wrap-text .box_t {
  display: flex;
  flex-direction: row;
}
.online-wrap .wrap .wrap-text .h2 {
  display: block;
  font-size: 30rpx;
  color: #431f09;
  width: 40%;
}
.online-wrap .wrap .wrap-text .h3 {
  display: block;
  font-size: 26rpx;
  color: #888888;
  width: 65%;
  text-align: right;
}
.online-wrap .wrap .wrap-text .h4 {
  display: block;
  font-size: 30rpx;
  color: #431f09;
}

.online-wrap .wrap .wrap-text .p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  margin-top: 10rpx;
  font-size: 26rpx;
  color: #888888;
}
.online-wrap .wrap .wrap-text .yue {
  width: 125rpx;
  height: 60rpx;
  text-align: right;
}
.save-btn-text {
  font-size: 24rpx;
  font-weight: 400;
  line-height: 1.42;
  position: relative;
  display: inline-block;
  margin-bottom: 0;
  padding: 10rpx 24rpx;
  cursor: pointer;
  -webkit-transition: all;
  transition: all;
  -webkit-transition-timing-function: linear;
  transition-timing-function: linear;
  -webkit-transition-duration: 0.2s;
  transition-duration: 0.2s;
  text-align: center;
  vertical-align: top;
  white-space: nowrap;
  border-radius: 6rpx;
  border-top-left-radius: 6rpx;
  border-top-right-radius: 6rpx;
  border-bottom-right-radius: 6rpx;
  border-bottom-left-radius: 6rpx;
  background-clip: padding-box;
  color: #fff;
  border: 1px solid #dd524d;
  background-color: #dd524d;
}
</style>
